
//引入样式
require('../css/commonCss/normalize.css')
require('../css/commonCss/reset.css')
require('../css/commonCss/property.css')
require('../css/commonCss/basic.less')
require('../fonts/iconfont.css')

require('../css/sport.less')

// 文档加载事件
document.addEventListener('DOMContentLoaded', function () {
    /* 
        0:获取元素
    */
    const mask = document.querySelector('.mask') //蒙层
    const stop = document.querySelector('.stop') //暂停按钮
    const continu = document.querySelector('.continue') //暂停按钮
    const ended = document.querySelector('.ended') //暂停按钮
    //点击暂停显示蒙层
    stop.addEventListener('click',function(){
        mask.style.display = 'flex';
        this.style.display = 'none';
    })
    // 点击继续返回最初样子
    continu.addEventListener('click',function(){
        stop.style.display = 'flex';
        mask.style.display = 'none';
    })
    // 点击结束跳转页面
    ended.addEventListener('click',function(){
        location.href = './map.html'
    })
})